<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="zevenseas.LifeCycleManagement.ApplicationPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4306074270f0265a" %>

<%@ Page Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="zevenseas.LifeCycleManagement.ApplicationPages.CaptureDeletionSettings" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>

<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls"  Assembly="Microsoft.SharePoint, Version=12.0.0.0,  Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server" >Lifecycle Management Administration Page | Site Deletion Settings
<asp:Literal ID="LiteralPageTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderMain" runat="server" >
  <style type="text/css">
    table.ms-propertysheet {
      height: 100%;
    }
  </style>
  <table cellspacing="0" cellpadding="0" border="0" class="ms-settingsframe">
    <tr>
      <td width="100%" colspan="4" style="padding-top: 0px;">
        <table class="ms-pageinformation" width="100%" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top" style="padding: 10px;" width="100%" height="100px">
              <table height="100%" width="100%" id="idItemHoverTable">
                <tr>
                  <th scope="col" colspan="2" style="padding-bottom: 8px;">
                    <span class="ms-linksectionheader">
                      <h3 class="ms-standardheader">
                        <SharePoint:EncodedLiteral
                          ID="EncodedLiteral3"
                          runat="server"
                          Text="Site Deletion Settings"
                          EncodeMethod='HtmlEncode' />
                      </h3>
                    </span>
                  </th>
                </tr>                
              </table>
            </td>
          </tr> 
        </table>
      </td>
    </tr>
    <tr>
    <td valign="top" style="padding: 4px 0px 4px 0px;" height="100%">
  	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
  	 <wssuc:InputFormSection Title="WebApplication selection" id="fmWebApplication"
            Description="Select the Web Application where you would like to configure what happens during Site Deletion." runat="server">		
            <template_inputformcontrols>            
              <wssuc:InputFormControl runat="server">
                <Template_Control>
			        <SharePoint:WebApplicationSelector ID="webApplicationSelector" runat="server" />
                </Template_Control>
              </wssuc:InputFormControl> 
               </template_inputformcontrols> 
          </wssuc:InputFormSection>
          <wssuc:InputFormSection Title="Install eventhandler" id="fmEventHandler"
            Description="Install: Activate the Site Deletion Handler on any sites where it has not been yet activated. Check: Checks and lists any sites where the Site Deletion Handler has not been installed" runat="server">		
            <template_inputformcontrols>             
              <wssuc:InputFormControl LabelText="Event Handler" runat="server">
                <Template_Control>
			        <asp:LinkButton Text="Install" OnClick="btn_Install" ID="btnInstall" runat="server" /></br>
			        <asp:LinkButton Text="Check" OnClick="btn_Check" ID="btnCheck" runat="server" />               
                </Template_Control>
              </wssuc:InputFormControl> 
               <wssuc:InputFormControl LabelText="Result" runat="server">
                <Template_Control>
                    <asp:Literal id="Result" runat="server"></asp:Literal>			       
                </Template_Control>
              </wssuc:InputFormControl> 
           </template_inputformcontrols> 
          </wssuc:InputFormSection>
          <wssuc:InputFormSection Title="Uninstall eventhandler" id="fmUninstallEventHandler"
            Description="Click the button the uninstall the eventhandlers from the webs and sites" runat="server">		
            <template_inputformcontrols>             
              <wssuc:InputFormControl LabelText="Event Handler" runat="server">
                <Template_Control>
			        <asp:LinkButton Text="UnInstall" OnClick="btn_UnInstall" ID="btnUnInstall" runat="server" />			        
                </Template_Control>
              </wssuc:InputFormControl>               
           </template_inputformcontrols> 
          </wssuc:InputFormSection>
          <wssuc:InputFormSection Title="Backup Settings" id="inputformSectionDeletionConfig"
            Description="Specify where and how sites should be backed up following their deletion." runat="server">            
            <template_inputformcontrols>             
             <wssuc:InputFormControl LabelText="Specify backup location (e.g. \\fileshare\SharePointBackups\" runat="server">
              <Template_Control>
                <wssawc:InputFormTextBox CssClass="ms-input" ID="txtBackuplocation" Runat="server" Columns="60" />                
              </Template_Control>
            </wssuc:InputFormControl>
            <wssuc:InputFormControl LabelText="Specify filename policy" runat="server"
              Description="Specify filename policy">
              <Template_Control>
                <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxDateTime"
                  runat="server" LabelText="Include date time in filename?" />
                <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxFolderSitecollection"
                  runat="server" LabelText="Create folder per sitecollection?" />
                <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxFolderWeb"
                  runat="server" LabelText="Create (sub)folder per web?" />
		        <SharePoint:InputFormCheckBox CssClass="ms-input" ID="cbxLogInSharePoint"
                  runat="server" LabelText="Log deletions in SharePoint?" />
              </Template_Control>
            </wssuc:InputFormControl> 
            </template_inputformcontrols>
          </wssuc:InputFormSection>
                  
           <wssuc:ButtonSection runat="server">
            <Template_Buttons>
                <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="OnClickOK" Text="<%$Resources:wss,multipages_okbutton_text%>" id="btnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
            </Template_Buttons>
        </wssuc:ButtonSection> 
        </table>
	</td>
    </tr>
  </table>
<asp:Label id="output" runat="server"/>
</asp:Content>